<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>默认主题</title>
    <meta name="generator" content="legency"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <style type="text/css" media="screen">
        
body        { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; }
table       { font-size: 100%; }
pre         { }

/* -- heading ---------------------------------------------------------------------- */
h1 {
	font-size: 16pt;
	color: gray;
}
.heading {
    margin-top: 0ex;
    margin-bottom: 1ex;
}
.heading .attribute {
    margin-top: 1ex;
    margin-bottom: 0;
}
.heading .description {
    margin-top: 4ex;
    margin-bottom: 6ex;
}

/* -- css div popup ------------------------------------------------------------------------ */
a.popup_link {
}
a.popup_link:hover {
    color: red;
}
.popup_window {
    display: none;
    position: relative;
    left: 0px;
    top: 0px;
    /*border: solid #627173 1px; */
    padding: 10px;
    background-color: #E6E6D6;
    font-family: "Lucida Console", "Courier New", Courier, monospace;
    text-align: left;
    font-size: 8pt;
    width: 500px;
}

/* -- report ------------------------------------------------------------------------ */
#show_detail_line {
    margin-top: 3ex;
    margin-bottom: 1ex;
}
#result_table {
    width: 80%;
    border-collapse: collapse;
    border: 1px solid #777;
}
#header_row {
    font-weight: bold;
    color: white;
    background-color: #777;
}
#result_table td {
    border: 1px solid #777;
    padding: 2px;
}
#total_row  { font-weight: bold; }
.passClass  { background-color: #6c6; }
.failClass  { background-color: #c60; }
.errorClass { background-color: #c00; }
.passCase   { color: #6c6; }
.failCase   { color: #c60; font-weight: bold; }
.errorCase  { color: #c00; font-weight: bold; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 2em; }

/* -- ending ---------------------------------------------------------------------- */
#ending {}

    </style>
    <script language="javascript" type="text/javascript">
        
output_list = Array();
/* level - 0:Summary; 1:Failed; 2:All */

function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (id.indexOf('testfail') === 0) {
            if (level < 1) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.indexOf('testpass') === 0) {
            if (level > 1) {
                tr.className = '';
            }
            else {
                tr.className = 'hiddenRow';
            }
        }
    }
}

function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        tid = 'testfail.' + cid.substr(1) + '.' + (i+1);
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'testpass.' + cid.substr(1) + '.' + (i+1);
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr.className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        if (toHide) {
            document.getElementById('div_'+tid).style.display = 'none';
            document.getElementById(tid).className = 'hiddenRow';
        } else {
            document.getElementById(tid).className = '';
        }
    }
}

function showTestDetail(div_id){
    var details_div = document.getElementById(div_id);
    var displayState = details_div.style.display;
    if (displayState !== 'block' ) {
        details_div.style.display = 'block';
    }
    else {
        details_div.style.display = 'none';
    }
}
function html_escape(s) {
    s = s.replace(/&/g,'&amp;');
    s = s.replace(/</g,'&lt;');
    s = s.replace(/>/g,'&gt;');
    return s;
}

/* obsoleted by detail in <div>
function showOutput(id, name) {
    var w = window.open("", //url
                    name,
                    "resizable,scrollbars,status,width=800,height=450");
    d = w.document;
    d.write("<pre>");
    d.write(html_escape(output_list[id]));
    d.write("\n");
    d.write("<a href='javascript:window.close()'>close</a>\n");
    d.write("</pre>\n");
    d.close();
}
*/

    </script>
</head>
<body>

<div class='heading'>
    <h1>默认主题</h1>
    <p class='attribute'><strong>开始时间:</strong> 2021-07-08 10:19:35</p>
    <p class='attribute'><strong>执行耗时:</strong> 0:00:00.015434</p>
    <p class='attribute'><strong>状态:</strong>
        <span class="badge badge-success">&nbsp;通过: 2&nbsp;</span>
        <span class="badge badge-danger">&nbsp;失败：2&nbsp;</span>
        <span class="badge badge-primary">&nbsp;错误：2&nbsp;</span>
        <span class="badge badge-secondary">&nbsp;跳过：2&nbsp;</span>
    </p>
    <p class='description'>默认主题描述</p>
</div>

<p id='show_detail_line'>Show
    <a href='javascript:showCase(0)'>Summary</a>
    <a href='javascript:showCase(1)'>Failed</a>
    <a href='javascript:showCase(2)'>All</a>
</p>

<table id='result_table'>
    <colgroup>
        <col align='left' />
        <col align='right' />
        <col align='right' />
        <col align='right' />
        <col align='right' />
        <col align='right' />
        <col align='right' />
    </colgroup>
    <tr id='header_row'>
        <td>Test Group/Test case</td>
        <td>Count</td>
        <td>Pass</td>
        <td>Fail</td>
        <td>Error</td>
        <td>Skip</td>
        <td>View</td>
    </tr>
    
    <tr class='errorClass'>
        <td>unittest_Demo.UTest</td>
        <td>4</td>
        <td>1</td>
        <td>1</td>
        <td>1</td>
        <td>1</td>
        <td><a href="javascript:showClassDetail('testclass1',4)">Detail</a></td>
    </tr>
        
            
                <tr id='testerror.1.1' class=''>
                    <td class='Case'><div class='testcase'>testError</div></td>
                    <td colspan='6' align='center'>
                    <!--css div popup start-->
                    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_testerror.1.1')" >
                        error</a>
                    <div id='div_testerror.1.1' class="popup_window">
                        <div style='text-align: right; color:red;cursor:pointer'>
                        <a onfocus='this.blur();' onclick="document.getElementById('div_testerror.1.1').style.display = 'none';" >
                           [x]</a>
                        </div>
                        <pre style="text-align: center;">
testerror.1.1: Traceback (most recent call last):
  File "D:\PythonCode\HttpRunnerReport\test\unittest_Demo.py", line 19, in testError
    1 / 0
ZeroDivisionError: division by zero

                        </pre>
                    </div>
                    <!--css div popup end-->
                    </td>
                </tr>
            
        
            
                <tr id='testfail.1.2' class=''>
                    <td class='Case'><div class='testcase'>testFalse</div></td>
                    <td colspan='6' align='center'>
                    <!--css div popup start-->
                    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_testfail.1.2')" >
                        fail</a>
                    <div id='div_testfail.1.2' class="popup_window">
                        <div style='text-align: right; color:red;cursor:pointer'>
                        <a onfocus='this.blur();' onclick="document.getElementById('div_testfail.1.2').style.display = 'none';" >
                           [x]</a>
                        </div>
                        <pre style="text-align: center;">
testfail.1.2: Traceback (most recent call last):
  File "D:\PythonCode\HttpRunnerReport\test\unittest_Demo.py", line 16, in testFalse
    self.assertFalse(True)
AssertionError: True is not false

                        </pre>
                    </div>
                    <!--css div popup end-->
                    </td>
                </tr>
            
        
            
                <tr id='testskip.1.3' class=''>
                    <td class='Case'><div class='testcase'>testSkip</div></td>
                    <td colspan='6' align='center'>
                    <!--css div popup start-->
                    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_testskip.1.3')" >
                        skip</a>
                    <div id='div_testskip.1.3' class="popup_window">
                        <div style='text-align: right; color:red;cursor:pointer'>
                        <a onfocus='this.blur();' onclick="document.getElementById('div_testskip.1.3').style.display = 'none';" >
                           [x]</a>
                        </div>
                        <pre style="text-align: center;">
testskip.1.3: Skip Test
                        </pre>
                    </div>
                    <!--css div popup end-->
                    </td>
                </tr>
            
        
            
                <tr id='testpass.1.4' class=''>
                    <td class=''><div class='testcase'>testTrue</div></td>
                    <td colspan='6' align='center'>pass</td>
                </tr>
            
        
    
    <tr class='errorClass'>
        <td>unittest_Demo.UTestError</td>
        <td>1</td>
        <td>0</td>
        <td>0</td>
        <td>1</td>
        <td>0</td>
        <td><a href="javascript:showClassDetail('testclass2',1)">Detail</a></td>
    </tr>
        
            
                <tr id='testerror.2.1' class=''>
                    <td class='Case'><div class='testcase'>testError</div></td>
                    <td colspan='6' align='center'>
                    <!--css div popup start-->
                    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_testerror.2.1')" >
                        error</a>
                    <div id='div_testerror.2.1' class="popup_window">
                        <div style='text-align: right; color:red;cursor:pointer'>
                        <a onfocus='this.blur();' onclick="document.getElementById('div_testerror.2.1').style.display = 'none';" >
                           [x]</a>
                        </div>
                        <pre style="text-align: center;">
testerror.2.1: Traceback (most recent call last):
  File "D:\PythonCode\HttpRunnerReport\test\unittest_Demo.py", line 38, in testError
    1 / 0
ZeroDivisionError: division by zero

                        </pre>
                    </div>
                    <!--css div popup end-->
                    </td>
                </tr>
            
        
    
    <tr class='failClass'>
        <td>unittest_Demo.UTestFail</td>
        <td>1</td>
        <td>0</td>
        <td>1</td>
        <td>0</td>
        <td>0</td>
        <td><a href="javascript:showClassDetail('testclass3',1)">Detail</a></td>
    </tr>
        
            
                <tr id='testfail.3.1' class=''>
                    <td class='Case'><div class='testcase'>testFalse</div></td>
                    <td colspan='6' align='center'>
                    <!--css div popup start-->
                    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_testfail.3.1')" >
                        fail</a>
                    <div id='div_testfail.3.1' class="popup_window">
                        <div style='text-align: right; color:red;cursor:pointer'>
                        <a onfocus='this.blur();' onclick="document.getElementById('div_testfail.3.1').style.display = 'none';" >
                           [x]</a>
                        </div>
                        <pre style="text-align: center;">
testfail.3.1: Traceback (most recent call last):
  File "D:\PythonCode\HttpRunnerReport\test\unittest_Demo.py", line 33, in testFalse
    self.assertFalse(True)
AssertionError: True is not false

                        </pre>
                    </div>
                    <!--css div popup end-->
                    </td>
                </tr>
            
        
    
    <tr class='passClass'>
        <td>unittest_Demo.UTestPass</td>
        <td>1</td>
        <td>1</td>
        <td>0</td>
        <td>0</td>
        <td>0</td>
        <td><a href="javascript:showClassDetail('testclass4',1)">Detail</a></td>
    </tr>
        
            
                <tr id='testpass.4.1' class=''>
                    <td class=''><div class='testcase'>testTrue</div></td>
                    <td colspan='6' align='center'>pass</td>
                </tr>
            
        
    
    <tr class='skipClass'>
        <td>unittest_Demo.UTestSkip</td>
        <td>1</td>
        <td>0</td>
        <td>0</td>
        <td>0</td>
        <td>1</td>
        <td><a href="javascript:showClassDetail('testclass5',1)">Detail</a></td>
    </tr>
        
            
                <tr id='testskip.5.1' class=''>
                    <td class='Case'><div class='testcase'>testSkip</div></td>
                    <td colspan='6' align='center'>
                    <!--css div popup start-->
                    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_testskip.5.1')" >
                        skip</a>
                    <div id='div_testskip.5.1' class="popup_window">
                        <div style='text-align: right; color:red;cursor:pointer'>
                        <a onfocus='this.blur();' onclick="document.getElementById('div_testskip.5.1').style.display = 'none';" >
                           [x]</a>
                        </div>
                        <pre style="text-align: center;">
testskip.5.1: Skip Test
                        </pre>
                    </div>
                    <!--css div popup end-->
                    </td>
                </tr>
            
        
    
    <tr id='total_row'>
        <td>Total</td>
        <td>8</td>
        <td>2</td>
        <td>2</td>
        <td>2</td>
        <td>2</td>
        <td>&nbsp;</td>
    </tr>
</table>

<div id='ending'>&nbsp;</div>
</body>
</html>